Skip to content

Conversation

@scordio
Copy link
Collaborator

@scordio scordio commented Nov 11, 2025

No description provided.

This reverts commit deb1c6d.

Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
@scordio scordio force-pushed the spring-batch-notion-java-25 branch from 53e2f9d to c3432a8 Compare November 11, 2025 15:45
@scordio
Copy link
Collaborator Author

scordio commented Nov 11, 2025

Javadoc generation for this line:

* The direction defaults to {@link Direction#DEFAULT_DIRECTION}.

fails with:

[ERROR] Failed to execute goal org.apache.maven.plugins:maven-javadoc-plugin:3.11.3:jar (attach-javadoc) on project spring-batch-notion: MavenReportException: Error while generating Javadoc: 
[ERROR] Exit code: 1
[ERROR] /home/runner/work/spring-batch-extensions/spring-batch-extensions/spring-batch-notion/src/main/java/org/springframework/batch/extensions/notion/Sort.java:29: error: reference not found
[ERROR]  * The direction defaults to {@link Direction#DEFAULT_DIRECTION}.
[ERROR]                                     ^
[ERROR] The generated documentation contains diagnostic markers for invalid input.
[ERROR] 1 error
[ERROR] Command line was: /usr/lib/jvm/temurin-25-jdk-amd64/bin/javadoc -J-Duser.language= -J-Duser.country= @options @packages
[ERROR] 
[ERROR] Refer to the generated Javadoc files in '/home/runner/work/spring-batch-extensions/spring-batch-extensions/spring-batch-notion/target/reports/apidocs' dir.

This seems to be a javadoc regression.

@scordio
Copy link
Collaborator Author

scordio commented Nov 14, 2025

This seems to be a javadoc regression.

The javadoc failure is actually correct, because DEFAULT_DIRECTION is not a constant in the Direction enum, it's a field in the enclosing Sort class. Linking invalid references was fixed in Java 23: JDK-8164094

Related thread: https://mail.openjdk.org/pipermail/javadoc-dev/2025-November/009444.html

Signed-off-by: Stefano Cordio <stefano.cordio@gmail.com>
@scordio scordio marked this pull request as ready for review November 14, 2025 18:34
@scordio scordio merged commit 3192515 into main Nov 14, 2025
3 checks passed
@scordio scordio deleted the spring-batch-notion-java-25 branch November 14, 2025 18:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants